package com.duoduo.demo.springnoxml.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/websocket")
public class WebSocketController {

	@RequestMapping(value = "", method = RequestMethod.GET)
	public String index() {
		return "websocket";
	}

	@RequestMapping(value = "/console", method = RequestMethod.GET)
	public String console() {
		return "websocket/console";
	}
}
